import { qiankunWindow } from 'vite-plugin-qiankun/dist/helper';
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
import Home from '../views/Home.vue';

const routes:RouteRecordRaw[] = [
  {
    path: '/Home',
    name: 'Home',
    meta: {
      keepAlive: false,
      needLogin: true,
    },
    component: Home,
  },
];

const router = createRouter({
  history: createWebHistory(
    qiankunWindow.__POWERED_BY_QIANKUN__ ? '/vue3' : ''
  ),
  routes,
});

export default router;
